package com.sjy.ylxt.enums;

import com.sjy.ylxt.interfaces.BaseErrorInfo;

public enum ExceptionEnum implements BaseErrorInfo {

    // 数据操作错误定义
    SUCCESS(1, "成功!"),
    ERROR(-1,"服务器正忙，请稍后再试!");


    /** 操作失败 */

    /**
     * 错误码
     */
    private final Integer resultCode;
    /**
     * 错误描述
     */
    private final String resultMsg;

    ExceptionEnum(Integer resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    @Override
    public Integer getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}